package cn.kgc.wyttest.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Chang
 * @program: wytTest
 * @description: 测试模板引擎
 * @date 2022-12-08 20:08:12
 */
@Controller
@RequestMapping("/templates")
public class TestController {
    @GetMapping("/index")
    public String index(){
        return "love";
    }


    @GetMapping("/testModeal")
    public String getModeal(Model model){
        model.addAttribute("id", "12345");
        model.addAttribute("name", "jack");
        return "testModealShow";
    }
}
